desktopChanged
Type
message
Summary
Sent to the current card of the defaultStack whenever the screenRect function changes.
Syntax
desktopChanged
Description
Handle the desktopChanged message to rearrange or reconfigure your layout when the user changes their screen size or layout.
As the desktopChanged message can be sent by the OS at any time, it is recommended that you handle the message in the main-stack of your application.
The LiveCode IDE broadcasts the desktopChanged message to all main stacks that are currently open at the time the engine receives the notification from the OS - this is to improve consistency with behaviour in standalone applications.
Examples
on desktopChanged
-- Check stack is still on screen or resize your stack appropriately
end desktopChanged
Related
function: screenRect
glossary: function
message: resizeStack
property: screenMouseLoc, windowBoundingRect
Compatibility and Support
Introduced
LiveCode 2.7
OS
mac
windows
Platforms
desktop